package com.yf.exam.modules.trainingarchives.trainingclassinfo.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yf.exam.common.vo.TraingTypeAndDescVO;
import com.yf.exam.modules.trainingarchives.pdfexport.dto.second.TrainingClassInfoExportDTO;
import com.yf.exam.modules.trainingarchives.trainingclassinfo.dto.req.TrainingClassInfoReqDTO;
import com.yf.exam.modules.trainingarchives.trainingclassinfo.dto.resp.TrainingClassInfoRespDTO;
import com.yf.exam.modules.trainingarchives.trainingclassinfo.entity.TrainingClassInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 一期一档基础信息表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-12-29
 */
public interface TrainingClassInfoMapper extends BaseMapper<TrainingClassInfo> {

    IPage<TrainingClassInfoRespDTO> paging(Page toPage, @Param("params") TrainingClassInfoReqDTO params);

    TrainingClassInfoExportDTO getPdfData(@Param("trainingClassInfoId") String trainingClassInfoId);

    TraingTypeAndDescVO getDesc(String id);
}
